package com.tank.observer;

import com.tank.entrity.GameObject;

/**
 * 坦克开火的事件
 */
public class TankFireEvent {
    private final GameObject gameObject;
    public TankFireEvent(GameObject gameObject) {
        this.gameObject = gameObject;
    }

    /**
     * 获取事件原对象
     * @return
     */
    public GameObject getSource() {
        return gameObject;
    }
}
